<template>
  <div class="groupbuying">
    <header>
      <head></head>
      <div class="top">
        <div>
          <navigator  open-type="switchTab" url="/pages/index/index">
          〈 
          </navigator>
        </div>
        <div>团购看房</div>
      </div>
    </header>

    <main>
      <div
        class="list"
        @click="pages"
      >
        <div class="list_1">
          <img
            src="../../static/groupbuying/u900.png"
            alt=""
          >
        </div>
        <button class="button1">我要报名</button>
        <div class="list_2">
          <div>恒大湖山半岛</div>
          <div>北京市石景山区456号</div>
          <div class="list_span">
            <span>活动时间：2021.4.17-2021.5.17</span>
            <span>已报名：21人</span>
          </div>
        </div>
      </div>

      <div
        class="list"
        @click="pages"
      >
        <div class="list_1">
          <img
            src="../../static/groupbuying/u900.png"
            alt=""
          >
        </div>
        <button class="button2">已报名</button>
        <div class="list_2">
          <div>恒大湖山半岛</div>
          <div>北京市石景山区456号</div>
          <div class="list_span">
            <span>活动时间：2021.4.17-2021.5.17</span>
            <span>已报名：21人</span>
          </div>
        </div>
      </div>

      <div
        class="list"
        @click="pages"
      >
        <div class="list_1">
          <img
            src="../../static/groupbuying/u900.png"
            alt=""
          >
        </div>
        <button class="button3">已开团</button>
        <div class="list_2">
          <div>恒大湖山半岛</div>
          <div>北京市石景山区456号</div>
          <div>集合地点：北京市石景山地铁口A口</div>
          <div>车辆牌号：京A34553</div>
          <div>集合时间：2021.4.17 9：00</div>
          <div class="list_span">
            <span>联系电话：15248373934</span>
            <span>已报名：21人</span>
          </div>
        </div>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  onShow() {
  },

  methods: {
    pages() {
      wx.navigateTo({
        url: "/pages/secondHand/index"
      });
    }
  }
};
</script>

<style lang='scss'>
* {
  padding: 0;
  margin: 0;
  list-style: none;
}

html,
body {
  width: 100%;
  height: 100%;
}
.groupbuying {
  width: 100%;
  height: 100%;

  header {
    width: 100%;
    height: 180rpx;
    color: #ffffff;
    background: #1281f5;

    head {
      width: 100%;
      height: 60rpx;
    }

    .top {
      width: 100%;
      height: 70rpx;
      line-height: 70rpx;
      display: flex;

      div {
        &:nth-child(1) {
          width: 100rpx;
          height: 100%;
          text-align: center;
          margin-left: 40rpx;
        }
        &:nth-child(2) {
          width: 300rpx;
          height: 100%;
          margin-left: 139rpx;
        }
      }
    }
  }

  main {
    width: 100%;
    height: 100%;
    padding-top: 30rpx;
    display: flex;
    flex-direction: column;
    align-items: center;

    .list {
      width: 91%;
      margin-bottom: 30rpx;
      font-size: 28rpx;
      position: relative;

      .button1 {
        position: absolute;
        top: 20rpx;
        left: 30rpx;
        width: 200rpx;
        height: 70rpx;
        color: #ffffff;
        font-size: 28rpx;
        background: linear-gradient(to right, #fb9f68, #fb8c68, #fb7267);
        border-radius: 35rpx;
      }

      .button2 {
        position: absolute;
        top: 20rpx;
        left: 30rpx;
        width: 200rpx;
        height: 70rpx;
        color: #ffffff;
        font-size: 28rpx;
        background: linear-gradient(to right, #f6cdd2, #f8adb0, #f9797a);
        border-radius: 35rpx;
      }

      .button3 {
        position: absolute;
        top: 20rpx;
        left: 30rpx;
        width: 200rpx;
        height: 70rpx;
        color: #ffffff;
        font-size: 28rpx;
        background: linear-gradient(to right, #0878f1, #1987f6, #309dfd);
        border-radius: 35rpx;
      }

      .list_1 {
        width: 100%;

        img {
          width: 100%;
          height: 440rpx;
          border-radius: 1%;
        }
      }

      .list_2 {
        .list_span {
          width: 100%;

          span {
            display: inline-block;

            &:last-child {
              float: right;
            }
          }
        }
      }
    }
  }
}
</style>
